package com.drugmanage.service;

import com.drugmanage.entity.User;
import com.drugmanage.model.UserModel;
import com.drugmanage.query.UserQuery;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public interface IUserService {

    User getById(Integer id);

    void register(User user);

    UserModel login(String userName, String pwd);

    void updateUserPassword(Integer userId,String oldPassword,String newPassword,String confirmPassword);

    String queryUser(Integer id);

    Map<String,Object> queryUserByParams(UserQuery userQuery);

    void saveUser(User user);

    void updateUser(User user);

    void deleteUser(Integer id);
}
